#pragma once
#define MaxSize 50
#define InitSize 50
#define ElemType int

// define SqList

typedef struct {
    ElemType data[MaxSize];
    int length;
}SqList;

// define operate
void InitSqList(SqList& L);

// Insert
bool SqListInsert(SqList& L, int i, ElemType e);

// GetElem (Location)
bool GetElem(SqList L, int i, int& e);

// LocateElem
int LocateElem(SqList L, int e);


// define SeqList
typedef struct {
    ElemType* data;
    int MS, length;
}SeqList;

// define operate
void InitSeqList(SeqList& L);

// Insert
bool SeqListInsert(SeqList& L, int i, ElemType e);

// GetElem (Location)
bool GetElem(SeqList L, int i, int& e);

// LocateElem
int LocateElem(SeqList L, int e);
